package cn.edu.scau.cmi.liangzaoqing.repository;

import cn.edu.scau.cmi.liangzaoqing.domain.UserTest;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

public interface UserTestRepository extends CrudRepository<UserTest, Long> {

    @Query("select u from UserTest u where u.name =:name")
    public UserTest findUserByName(@Param("name") String name);

//    public User findUserByUserName(String name);

}
